﻿using System.Windows;
using TicTacToe.UI.Statistics;

namespace TicTacToe.UI
{
    partial class StartWindow : Window
    {
        public StartWindow()
        {
            InitializeComponent();
        }

        private void Border_MouseUp(object sender, RoutedEventArgs routedEventArgs)
        {
            new AboutWindow { Owner = this }.ShowDialog();
        }

        // new game
        private void NewGameButton_Click(object sender, RoutedEventArgs routedEventArgs)
        {
            new NewGameDialog().Show();
            Close();
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            new NetJoinPropertiesWindow().Show();
            Close();
        }

        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            new NetHostPropertiesWindow().Show();
            Close();
        }

        private void statisticsButton_Click(object sender, RoutedEventArgs e)
        {
            new StatisticsWindow().Show();
        }

        private void loadButton_Click(object sender, RoutedEventArgs e)
        {
            new LoadGameWindow().Show();
            Close();
        }
    }
}
